package org.example;

import java.io.IOException;
import java.util.LinkedList;

public class test {
    public static void getCustomerInfo(Exception exception) {
        try {
            throw exception;
        // do something that may cause an Exception
        } catch (NullPointerException  ex){
            System.out.print("FileNotFoundException!");
        } catch (java.lang.Exception  ex){
            System.out.print("Exception!");
        }
    }

    public static void main(String[] args) {
        getCustomerInfo(new Exception());
//        LinkedList list=new LinkedList();
//        list.add("A");
//        list.add(2,"B");
//        String s=(String)list.get(1);
//        System.out.println(s);
//        String s = null;
//        if( (s==null) | (s.length()==0) ) {
//            System.out.println(1);
//        }

    }
}
